-- GENERATED SPELL FOR [Night Elf Huntress] --


function spell0_17945(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(31779,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17945', 647, 1)
end

function Sorts_17945(pUnit, Event)
local choix_sorts_17945 = math.random(0, 0)
if choix_sorts_17945 == 0 then
pUnit:RegisterEvent('spell0_17945', 1, 1)
end
end

function mob17945_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17945', math.random(1500, 3000), 1)
end

function mob17945_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17945_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17945_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17945, 1, 'mob17945_Action')
RegisterUnitEvent(17945, 2, 'mob17945_Leave')
RegisterUnitEvent(17945, 3, 'mob17945_Kill')
RegisterUnitEvent(17945, 4, 'mob17945_Die')
